<template>
  <div class="page-head">
    <div class="head-base">
      <div class="header-box">
        <div class="header w-1400">
          <div class="left">
            <span class="wel-text">
              Hi，欢迎来到工程5188信息共享平台！
            </span>
          </div>

          <div class="right">
            <div>
              <router-link to="/supplierLogin">我是供应商</router-link>
            </div>
            <div>
              <router-link to="/businessPersonnelLogin">我是业务员</router-link>
            </div>
            <div>
              <router-link to="/vipCenter">服务中心</router-link>
            </div>

          </div>
        </div>
      </div>
    </div>

    <div class="head-search">
      <div class="header-box w-1400">
        <div class="headerDiv">
          <div class="header">
            <div class="left-logo">
              <img src="@/static/engineering5188/common/logo.png" @click="$router.push('/')" />
            </div>
            <div class="headerLine"></div>
            <div class="headerTitle">服务中心</div>
          </div>

          <div class="flex">
            <div :class="{'activeTitle':$route.path === '/vipCenter', 'noActiveTitle': $route.path !== '/vipCenter'}"  @click="$router.push('/vipCenter')">
              VIP会员
            </div>
            <div :class="{'activeTitle':$route.path === '/payment', 'noActiveTitle': $route.path !== '/payment', 'm-l-40':true}"   @click="$router.push('/payment')">
              付款方式
            </div>
            <div :class="{'activeTitle':$route.path === '/serviceTerms', 'noActiveTitle': $route.path !== '/serviceTerms', 'm-l-40':true}"   @click="$router.push('/serviceTerms')">
              服务条款
            </div>
            <div :class="{'activeTitle':$route.path === '/privacy', 'noActiveTitle': $route.path !== '/privacy', 'm-l-40':true}"   @click="$router.push('/privacy')">
              隐私声明
            </div>
            <div  :class="{'activeTitle':$route.path === '/aboutUs', 'noActiveTitle': $route.path !== '/aboutUs', 'm-l-40':true}"   @click="$router.push('/aboutUs')">
              关于我们
            </div>
            <div  :class="{'activeTitle':$route.path === '/contactUs', 'noActiveTitle': $route.path !== '/contactUs', 'm-l-40':true}"   @click="$router.push('/contactUs')">
              联系我们
            </div>
          </div>

        </div>
      </div>
    </div>

    <div class="head-nav">
       <img class="headerlogo" src="@/static/engineering5188/service/headerlogo.png" alt="">
    </div>
  </div>
</template>

<script>
import topNavModel from "@/components/common/engineering5188/topNavModel.vue";



export default {
  name: "HeaderIndex",
  components: {
    topNavModel
  },
  data() {
    return {
      keyword: ''
    };
  },

  computed: {

  },

  watch: {

  },

  created() {

  },

  methods: {
  }
};
</script>

<style scoped lang="less">
.head-base {
  .header-box {
    background: #F6F6F6;
  }

  .header {
    max-width: @width;
    height: 36px;
    line-height: 36px;
    // padding: 0 10px;
    margin: 0 auto;
    color: #F6F6F6;
    font-size: 12px;

    

    .left {
      float: left;
      min-width: 20%;
      text-align: left;

      .wel-text {
        font-family: PingFang SC, PingFang SC;
        font-weight: 400;
        font-size: 14px;
        color: #333333;
        height: 36px;
        line-height: 36px;
        text-align: left;
        font-style: normal;
      }
    }

    .right {
      float: right;
      display: flex;
      justify-content: flex-end;
      width: 60%;
      padding: 0 0;
      color: #333;

      a {
        color: #333;
      }


      div {
        margin-right: 28px;
        cursor: pointer;
        font-family: MicrosoftYaHei, MicrosoftYaHei;
        font-weight: normal;
        font-size: 13px;
        color: #333333;
        height: 36px;
        line-height: 36px;
        text-align: left;
        font-style: normal;
        text-transform: none;

        &:last-child {
          margin-right: 0;
        }
      }
    }
  }
}

.head-search {

  .header-box {
    max-width: @width;
    height: auto;
    height: 104px;
  }

  .headerDiv{
    height: 100%;
    display: flex;
    justify-content: space-between;
  }
  .header {
    height: 100%;
    display: flex;
    align-items: center;

    .headerTitle{
      font-weight: bold;
      font-size: 28px;
      color: #000000;
      line-height: 42px;
      letter-spacing: 4px;
    }

    .headerLine{
      height: 32px;
      border-left: 1px solid #E5E5E5;
      width: 17px;
      margin-left:24px;
    }

    .left-logo {
      cursor: pointer;
      justify-content: flex-start;

      img {
        height: 56px;
        cursor: pointer;
      }

      span {
        margin-left: 10px;
        font-size: 30px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        line-height: 30px;
        color: #333333;
      }
    }

    .center-search {
      flex: 1;
      margin-left: 86px;
      display: flex;
      align-items: flex-start;

      .search-wrap {
        width: 100%;
      }
    }

    .qrCode-box {
      margin-left: 97px;
      margin-right: 93px;
      display: flex;
      flex-direction: column;
      align-items: center;

      img {
        height: 48px;
        width: 48px;
      }

      .qrCode-text {
        margin-top: 12px;
        font-family: PingFang SC, PingFang SC;
        font-weight: 400;
        font-size: 12px;
        color: #333333;
        text-align: left;
        font-style: normal;
      }
    }
  }

  .activeTitle{
    padding-top:40px;
    font-family: PingFang SC, PingFang SC;
    font-weight: 500;
    font-size: 18px;
    color: #31A41B;
    padding-bottom: 37px;
    border-bottom: 4px solid #31A41B;
    cursor: pointer;
  }
  .noActiveTitle{
    padding-top:40px;
    font-family: PingFang SC, PingFang SC;
    font-weight: 500;
    font-size: 18px;
    color: #1A1A1A;
    padding-bottom: 37px;
    border-bottom: 4px solid #fff;
    cursor: pointer;
  }

  .m-l-40{
    margin-left:40px;
  }

  .flex{
    display: flex;
  }

  

}

.headerlogo{
    width: 100wv;
    height: 260px;
  }

</style>

<style scoped lang="less" src="@/assets/h5css/zujian/pageHeader.less"></style>
